package com.gxa.modules.service.impl;

import com.gxa.modules.mapper.ShiroMapper;
import com.gxa.modules.service.ShiroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @Author: wangyifan
 * @Date: 2021/12/29 11:10
 * @Description: $end$
 * @Version: V1.0
 */
@Service
public class ShiroServiceImpl implements ShiroService {

    @Autowired(required = false)
    private ShiroMapper shiroMapper;

    @Override
    public Set<String> getUserPermissions(Long userId) {
        Set<String> permsSet = shiroMapper.getUserPermissions(userId);
        return permsSet;
    }
}
